﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.IO;

namespace Ruandao.MiniFace
{
    /// <summary>
    /// 微件，表示网页中独立呈现的一个html片段。
    /// </summary>
    public abstract class WidgetBase
    {
        public Dictionary<string, string> Properties { get; set; }

        public WidgetElement WidgetTemplate { get; set; }

        /// <summary>
        /// 输出响应。
        /// </summary>
        /// <param name="template"></param>
        /// <param name="templateContext"></param>
        /// <param name="writer">writer是对response响应流的包装。</param>
        abstract public void Render( TemplateContext templateContext, TextWriter writer);

    }
}
